/**
 * @(#)AdServieImpl.java 2017年4月10日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.jsbd.boss.dao.IRefererDAO;
import org.jsbd.boss.domian.channel.Referer;
import org.jsbd.boss.service.IRefererService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * TODO 请加入本类的说明
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
@Service
public class RefererServieImpl implements IRefererService {
	public static final Logger LOGGER = LoggerFactory.getLogger(RefererServieImpl.class);

	@Resource
	private IRefererDAO refererDao;

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.service.IRefererService#selectRefererList(org.jsbd.boss
	 * .domian.channel.Referer)
	 */
	@Override
	public List<Referer> selectPageRefererList(Referer referer) {
		return refererDao.selectPageRefererList(referer);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.service.IRefererService#selectCountOfReferer(org.jsbd.boss
	 * .domian.channel.Referer)
	 */
	@Override
	public Integer selectCountOfReferer(Referer referer) {
		return refererDao.selectCountOfReferer(referer);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.service.IRefererService#updateReferer(org.jsbd.boss.domian
	 * .channel.Referer)
	 */
	@Override
	public void updateReferer(Referer referer) {
		refererDao.updateReferer(referer);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.service.IRefererService#insertReferer(org.jsbd.boss.domian
	 * .channel.Referer)
	 */
	@Override
	public Integer insertReferer(Referer referer) {
		return refererDao.insertReferer(referer);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.service.IRefererService#selectReferer(java.lang.Integer)
	 */
	@Override
	public Referer selectReferer(Integer id) {
		Referer referer = new Referer();
		referer.setId(id);
		return refererDao.selectReferer(referer);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.service.IRefererService#selectRefererList(java.lang.Integer
	 * )
	 */
	@Override
	public List<Referer> selectRefererList(Integer length) {
		return refererDao.selectRefererList(length);
	}

}
